#ifndef _CARD
#define _CARD

#define NB_CARD 10

#include <iostream>
#include <cstdlib>
#include <ctime>

using namespace std;

class Card
{
public:
    unsigned int type_card;
    bool have_piece;
    bool have_treasure;

    Card(const unsigned int & card=0,const bool & p=false,const bool & t=false);

    bool north_access() const;
    bool south_access() const;
    bool east_access() const;
    bool west_access() const;

    bool connexion_west_east(const Card & card) const;
    bool connexion_south_north(const Card & card_n) const;

    void clock_rotation();
    void anti_clock_rotation();

    void set_all(const Card & c);
    void set_all(const unsigned int & type,const bool & p,const bool & t);

    void set_random_card_t0();
    void set_random_card_t1();
    void set_random_card_t2();
};

#endif
